home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-06-17 | 847 b | 59 lines | [TEXT/KAHL] |
- // Patch for ShowCursor to null out a few pixels
-
- void main ( void ) ;
- void do_it ( void ) ;
-
-
- void
- main ( void )
- {
- long foo ;
-
- asm {
-
- movem.l d0-d7/a0-a4 , -(a7)
- jmp @next
- literal:
- dc.w 0xeeee
- dc.w 0xeeee
- next:
- move.l @literal , foo
- }
-
- do_it ( ) ; // Well, do it !
-
- asm {
- movem.l (a7)+ , d0-d7/a0-a4
- move.l foo , a0
- unlk a6
- jmp (a0)
- }
- }
-
-
- void
- do_it ( void )
- {
- register long base ;
- register long row ;
- register char * tmp ;
-
- base = ( long ) WMgrPort -> portBits . baseAddr ;
- row = WMgrPort -> portBits . rowBytes ;
- if ( row > 0 ) {
-
- tmp = ( char * ) base + row * 11 + ( 590 >> 3 ) ;
- * tmp &= 0xef ;
-
- tmp = ( char * ) base + row * 200 + ( 320 >> 3 ) ;
- * tmp &= 0x7e ;
-
- tmp = ( char * ) base + row * 302 + ( 110 >> 3 ) ;
- * tmp &= 0xef ;
-
- tmp = ( char * ) base + row * 10 + 2 ;
- * tmp &= 0xfe ;
-
- }
- }
-